
package dieci.hibernate;

import dieci.database.PersistentObject;
import dieci.system.Supplier;

/**
 *
 * @author DuckSys
 */
public class HibSupplier implements PersistentObject{

    private String name;
    private int supplierId;
    private String contactPerson;
    private String address;
    private String email;
    private String phone;
    private String webSite;
    private int deleted;
    
    public HibSupplier()
    {
    }
    
    public HibSupplier(Supplier supplier)
    {
        this.name = supplier.getName();
        this.address = supplier.getAddress();
        this.contactPerson = supplier.getContactPerson();
        this.email = supplier.getEmail();
        this.webSite = supplier.getWebSite();
        this.phone = supplier.getPhone();
        this.deleted = supplier.getDeleted();
    }
    
    public HibSupplier(int supplierId, Supplier supplier)
    {
        this(supplier);
        this.supplierId = supplierId;        
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public int getSupplierId()
    {
        return supplierId;
    }

    public void setSupplierId(int supplierId)
    {
        this.supplierId = supplierId;
    }

    /**
     * Get the value of webSite
     *
     * @return the value of webSite
     */
    public String getWebSite()
    {
        return webSite;
    }

    /**
     * Set the value of webSite
     *
     * @param webSite new value of webSite
     */
    public void setWebSite(String webSite)
    {
        this.webSite = webSite;
    }

    /**
     * Get the value of phone
     *
     * @return the value of phone
     */
    public String getPhone()
    {
        return phone;
    }

    /**
     * Set the value of phone
     *
     * @param phone new value of phone
     */
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    /**
     * Get the value of email
     *
     * @return the value of email
     */
    public String getEmail()
    {
        return email;
    }

    /**
     * Set the value of email
     *
     * @param email new value of email
     */
    public void setEmail(String email)
    {
        this.email = email;
    }

    /**
     * Get the value of address
     *
     * @return the value of address
     */
    public String getAddress()
    {
        return address;
    }

    /**
     * Set the value of address
     *
     * @param address new value of address
     */
    public void setAddress(String address)
    {
        this.address = address;
    }

    /**
     * Get the value of contactPerson
     *
     * @return the value of contactPerson
     */
    public String getContactPerson()
    {
        return contactPerson;
    }

    /**
     * Set the value of contactPerson
     *
     * @param contactPerson new value of contactPerson
     */
    public void setContactPerson(String contactPerson)
    {
        this.contactPerson = contactPerson;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }
    
    
}
